﻿namespace Base.Entities.States
{
    /// <summary>
    /// 表示正在加载数据的状态
    /// </summary>
    public class LoadingState:IState
    {
        public int? ErrorCode { get; set; }
        public string ErrorMessage { get; set; }
        public int StateType { get; }

        public LoadingState(int stateType,string errorMsg=null,int? errorCode=null)
        {
            StateType = stateType;
            ErrorMessage = errorMsg;
            ErrorCode = errorCode;
        }
    }
}
